"""
@author: 江同学呀
@file: fields.py
@date: 2024/7/27 21:41
@desc: 
"""
from typing import List

from espc.orm.model.base.base import _Base


class Histogram(_Base):
    """
    直方图
    """
    def __init__(self, values: List[float], counts: List[int], *args, **kwargs):
        super(Histogram, self).__init__(*args, **kwargs)

        self._values: List[float] = values
        self._counts: List[int] = counts
        return

    def _build(self):
        return {
            "values": self._values,
            "counts": self._counts
        }



